<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<style>
  .nav-main {
    display: none;
  }
</style>

<div class="nav-main">
  <%@ include file="basic.jsp" %>
</div>
<div class="nav-main">
  <%@ include file="avatar.jsp" %>
</div>
<div class="nav-main">
  <%@ include file="password.jsp" %>
</div>

<script>
  function setNavMainIndex() {
    var mains = document.getElementsByClassName('nav-main')
    for (let i = 0; i < mains.length; i++) {
      mains[i].setAttribute('index', i)
    }
    mains[0].style.display = 'block'
  }
</script>